import request from '@/utils/request'

// 查询消费详细列表
export function listDetails(query) {
  return request({
    url: '/project/shao/details/list',
    method: 'get',
    params: query
  })
}
// 定时出库
export function listdingshi(query) {
  return request({
    url: '/project/shao/details/listdingshi',
    method: 'get',
    params: query
  })
}
// 定时出库
export function listyupao(query) {
  return request({
    url: '/project/shao/details/listyupao',
    method: 'get',
    params: query
  })
}

// 查询消费详细详细
export function getDetails(ID) {
  return request({
    url: '/project/shao/details/' + ID,
    method: 'get'
  })
}

// 新增消费详细
export function addDetails(data) {
  return request({
    url: '/project/shao/details',
    method: 'post',
    data: data
  })
}

// 修改消费详细
export function updateDetails(data) {
  return request({
    url: '/project/shao/details',
    method: 'put',
    data: data
  })
}

// 删除消费详细
export function delDetails(ID) {
  return request({
    url: '/project/shao/details/' + ID,
    method: 'delete'
  })
}
